package com.dong.service.Provider;

import com.dong.pojo.Provider;
import com.dong.pojo.User;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

public interface ProviderService {
    //增加供应商
    public boolean add(Provider provider);
    //通过供应商名称、编码获取供应商列表
    public List<Provider> getProviderList(String proName, String proid);
    public List<Provider> getProviderList(String proName, String proCode,int currentPageNo, int pageSize);
    //通过供应商id查找供应商
    public Provider getProviderById(String id);
    //修改供应商信息
    public boolean modifyProvider(Provider provider);
    //通过id删除供应商
    public int deleteProviderById(String delId);
    //查询记录数
    public int getUserCount(String proName,String proCode);
}
